package top.itczw.beetl.dao;

import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.annotatoin.Sql;
import org.beetl.sql.core.mapper.BaseMapper;
import top.itczw.beetl.entity.User;

import java.util.List;

/**
 * @author czw
 */
public interface UserDao extends BaseMapper<User>{
	
	User findById(@Param("userId") Integer userId);

	List<User> selectUserAndRole();

	@Sql(value="select id from user where age=?")
	public List<Long> selectIds(int age);
}
